package com.stone.serverless.dashboard.controller;//package com.stone.serverless.server;

import com.stone.serverless.dashboard.DashBoardConsumer;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Description: TODO
 * @Author: MECHREVO
 * @Date: 2022/1/13 9:53
 * @Version: 1.0.0
 */
@RestController
public class UninstallController {

    @GetMapping("/uninstall")
    public Boolean uninstall(@RequestParam(value = "moduleName") String moduleName,
                             @RequestParam(value = "version") String version) {
        DashBoardConsumer.INSTANCE.jarLoadService.uninstall(moduleName,version);
        return Boolean.TRUE;
    }
}
